package com.mall.book.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.book.entity.po.SaleStock;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Dizziness on 2022/3/24 9:24
 */
public interface SaleStockMapper extends BaseMapper<SaleStock> {
    SaleStock selectStock(@Param("book_id") String book_id);

    int updateEvenDeleted(@Param("stock") SaleStock saleStock);

    boolean updateDeletedStatus(@Param("id") String id,@Param("status") int status);
}
